package com.example.kt_base.s3

//TODO 43.Kotlin语言的substring

const val INFO="Derry is Success Result"
fun main() {
    val indexOf= INFO.indexOf("i")
    println(INFO.substring(0,indexOf))
    println(INFO.substring(0 until indexOf))
}
